package com.better.common.jwtauth.secruity;

import lombok.Data;

import java.io.Serializable;
@Data
public class JwtAuthenticationResponse implements Serializable {
    private static final long serialVersionUID = 1250166508152483573L;
    private JWTUserDetails users;
    private final String token;

    public JwtAuthenticationResponse(String token,JWTUserDetails users) {
        this.token = token;
        this.users=users;
    }
    public JwtAuthenticationResponse(String token) {
        this.token = token;
    }
    public String getToken() {
        return this.token;
    }
}
